package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 address
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 联系人姓名 */
    @Excel(name = "联系人姓名")
    private String contact;

    /** 收货地址明细 */
    @Excel(name = "收货地址明细")
    private String addressDesc;

    /** 邮编 */
    @Excel(name = "邮编")
    private String postCode;

    /** 联系人电话 */
    @Excel(name = "联系人电话")
    private String tel;

    /** 创建者 */
    @Excel(name = "创建者")
    private Long createdUserId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 修改者 */
    @Excel(name = "修改者")
    private Long updatedUserId;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContact(String contact) 
    {
        this.contact = contact;
    }

    public String getContact() 
    {
        return contact;
    }

    public void setAddressDesc(String addressDesc) 
    {
        this.addressDesc = addressDesc;
    }

    public String getAddressDesc() 
    {
        return addressDesc;
    }

    public void setPostCode(String postCode) 
    {
        this.postCode = postCode;
    }

    public String getPostCode() 
    {
        return postCode;
    }

    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }

    public void setCreatedUserId(Long createdUserId) 
    {
        this.createdUserId = createdUserId;
    }

    public Long getCreatedUserId() 
    {
        return createdUserId;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedUserId(Long updatedUserId) 
    {
        this.updatedUserId = updatedUserId;
    }

    public Long getUpdatedUserId() 
    {
        return updatedUserId;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contact", getContact())
            .append("addressDesc", getAddressDesc())
            .append("postCode", getPostCode())
            .append("tel", getTel())
            .append("createdUserId", getCreatedUserId())
            .append("createdTime", getCreatedTime())
            .append("updatedUserId", getUpdatedUserId())
            .append("updatedTime", getUpdatedTime())
            .append("userId", getUserId())
            .toString();
    }
}
